;;; init-cc.el --- c & c++ config -*- lexical-binding:t -*-
;;; Commentary:
;;; Code:

(use-package cc-mode
  :defer t
  :ensure nil
  :hook (c-mode-common . (lambda () (c-set-style "stroustrup")))
  :init (setq-default c-basic-offset 4))

(use-package modern-cpp-font-lock
  :defer t
  :diminish
  :hook (cc-mode . modern-c++-font-lock-global-mode))

(use-package cmake-ide
  :defer t
  :init (cmake-ide-setup))

;; c-cc-mode
(leader-key c-mode-base-map
  "m" '(:ignore t :wk "lang")
  "mx" '(quickrun :wk "run")
  )


(provide 'init-cc)
;;; init-cc.el ends here
